package com.sunshine.lnuplus.viewModel

import android.app.Application
import androidx.lifecycle.LiveData
import com.sunshine.lnuplus.base.BaseViewModel
import com.sunshine.lnuplus.model.room.CountDown
import com.sunshine.lnuplus.model.room.TimetableRepository

class CountDownViewModel(application: Application) : BaseViewModel(application) {
    val repository = TimetableRepository(application)

    fun getAllCountDown() : LiveData<List<CountDown?>?>? {
        return repository.allLiveCountDown
    }

    fun insertCountDown(countDown: CountDown){
        repository.insertCountDown(countDown)
    }
}
